import 'package:json_annotation/json_annotation.dart';

part 'user_realname_query.g.dart';

@JsonSerializable()
class UserRealnameQuery {
  final int id;
  final String name;
  final String cardNo;
  final String cardType;
  final String auditStatus; // NOT_APPLY、AUDITING、AUDIT_FAIL、AUDIT_SUCCESS
  final String auditStatusStr;
  final String auditNote;
  final String front;
  final String back;

  UserRealnameQuery(
    this.id,
    this.name,
    this.cardNo,
    this.cardType,
    this.auditStatus,
    this.auditStatusStr,
    this.auditNote,
    this.front,
    this.back,
  );

  factory UserRealnameQuery.fromJson(Map<String, dynamic> json) =>
      _$UserRealnameQueryFromJson(json);

  Map<String, dynamic> toJson() => _$UserRealnameQueryToJson(this);
}
